// 用户

import instance from './http'

const user = {
    // 登录
    login(data) {
        return instance({
            method: 'POST',
            url: '/user/login',
            data: data
        })
    },

    // 注册
    register(data) {
        return instance({
            method: 'POST',
            url: '/user/register',
            data: data
        })
    },
}

export default user
